third-party-exp-api
CI Get Capital Invest Accounts
Description: This API gets the customerId and gets the account details for capital Invest.
- The experience API (third-party-api) will push the requests to third-party-prc api which sends JSON request to T24 temenos sys api to get the customer profile based on customerId.
- If successful, then a request to MANAF to checkIfLinkedAccounts. If failure, T24 must be updated with UpdateCapitalInvestID status call.
- If successful, GetTradingAccountBalances endpoint of MANAF will be triggered with AccountNumber/CapitalInvestID.
- Once we get the T24 response, we have the following scenarios:
- If T24 is responding with success,CapitalInvestId is null, Error will be sent to channel saying โAccount Not Linkedโ
- If T24 is responding with success, CapitalInvestId is present, MANAF call will be triggered for CheckIfLinkedAccounts.
- If we receive T24 error, response will be sent to channel with error code and description.
Mulesoft Request:
Headers:
Mandatory Headers: x-correlation-id, client_id, Authorization
Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret, x-channel-id, x-bank-id
Paramaters:
URI Params: ciCustomerId
Query Params: NA
Body:
NA
Content-type: application/json, text/json
Mulesoft Response:
Success Response: (200)
{
"success": true,
"code": 0,
"message": "Data Found",
"data": [
{
"region": "Regional",
"parent": 304,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฌููู ู
ุตุฑู\r\n",
"accountNameEn": "Regional Markets / EGP\r\n",
"accountBalanceDueDate": 27926.6410,
"accountBalanceVoucherDate": 27926.6410,
"currency": "EGP "
},
{
"region": "Regional",
"parent": 291,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฏุฑูู
ุงู
ุงุฑุงุชู\r\n",
"accountNameEn": "Regional Markets / AED\r\n",
"accountBalanceDueDate": 1203.3200,
"accountBalanceVoucherDate": 1203.3200,
"currency": "AED "
},
{
"region": "Regional",
"parent": 283,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฏููุงุฑ ุงู
ุฑููู\r\n",
"accountNameEn": "Regional Markets / USD\r\n",
"accountBalanceDueDate": 14400.4800,
"accountBalanceVoucherDate": 14400.4800,
"currency": "USD "
},
{
"region": "Regional",
"parent": 274,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฏููุงุฑ ุฃุฑุฏูู\r\n",
"accountNameEn": "Regional Markets / JOD\r\n",
"accountBalanceDueDate": 1011.5670,
"accountBalanceVoucherDate": 1011.5670,
"currency": "JOD "
},
{
"region": "Regional",
"parent": 295,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฏููุงุฑ ุจุญุฑููู\r\n",
"accountNameEn": "Regional Markets / BHD\r\n",
"accountBalanceDueDate": 247.5110,
"accountBalanceVoucherDate": 247.5110,
"currency": "BHD "
},
{
"region": "Regional",
"parent": 297,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฏููุงุฑ ูููุชู\r\n",
"accountNameEn": "Regional Markets / KWD\r\n",
"accountBalanceDueDate": 302.1840,
"accountBalanceVoucherDate": 302.1840,
"currency": "KWD "
},
{
"region": "Regional",
"parent": 302,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฑูุงู ุนู
ุงูู\r\n",
"accountNameEn": "Regional Markets / OMR\r\n",
"accountBalanceDueDate": 332.3450,
"accountBalanceVoucherDate": 332.3450,
"currency": "OMR "
},
{
"region": "Regional",
"parent": 300,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุงูููู
ูุฉ / ุฑูุงู ูุทุฑู\r\n",
"accountNameEn": "Regional Markets / QAR\r\n",
"accountBalanceDueDate": 1573.6800,
"accountBalanceVoucherDate": 1573.6800,
"currency": "QAR "
},
{
"region": "International",
"parent": 247,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุงุณูุงู ุฏูููุฉ / ุฏููุงุฑ ุงู
ุฑููู\r\n",
"accountNameEn": "International Markets / USD\r\n",
"accountBalanceDueDate": 11784.0000,
"accountBalanceVoucherDate": 11784.0000,
"currency": "USD "
},
{
"region": "Local",
"parent": 223,
"tradingAccountNumber": 7777,
"forexTradeNumber": 0,
"accountNameAr": "ุณูู ู
ุญูู / ุฏููุงุฑ ุฃุฑุฏูู",
"accountNameEn": "Spot Local / JOD",
"accountBalanceDueDate": 3699.7870,
"accountBalanceVoucherDate": 3699.7870,
"currency": "JOD "
}
]
}
Error Response: (400, 403, 404, 405, 406, 415, 500, 501)
{
"status": {
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "",
"englishMessage": "Not Valid OTP",
"backendError": "Not Valid OTP",
"backendCode": "11"
}
}
Error Response: (Get Customer CI Profile)
{
"status": {
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "ูู
ูุชู
ุงูุนุซูุฑ ุนูู ุณุฌูุงุช ุชุทุงุจู ู
ุญุฏุฏุงุช ุงูุจุญุซ",
"englishMessage": "No records were found that matched the selection criteria",
"backendError": "",
"backendCode": "T24003790"
}
}
Error Response: (Get Trading Account Balances)
{
"status": {
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "No Data Found",
"englishMessage": "No Data Found",
"backendError": "",
"backendCode": 1
}
}